package MAgentAssignment;

import MAgentAssignment.ontology.FlightOntology;
import jade.content.lang.Codec;
import jade.content.lang.sl.SLCodec;
import jade.content.onto.Ontology;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;

/**
 * Created by IntelliJ IDEA.
 * User: prageeth
 * Date: 2/16/12
 * Time: 2:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class AirportTaxAgent extends Agent
{
private Codec codec = new SLCodec();
private Ontology ontology = FlightOntology.getInstance();

        @Override protected void setup()
        {

        getContentManager().registerLanguage( codec );
        getContentManager().registerOntology( ontology );

            addBehaviour( new CyclicBehaviour()
            {
                @Override public void action()
                {
                    // any time any person can query the airline manager about the airport tax
                    // need to be paid by the airline
                    // when a flight arrives and taken off airport tax agent has to charge teh airline for the tax
                    // that should be paid for the period of time that the flight stays
                    // these tax figures will consider by the airline manager agent before deciding a flight to
                    // that airport
                }
            } );
        }
        // any time
}
